package com.slg.android.listenbook.biz.home.fragment;


import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.text.TextUtils;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.SeekBar;
import android.widget.TextView;

import com.lidroid.xutils.ViewUtils;
import com.lidroid.xutils.view.annotation.ViewInject;
import com.slg.android.listenbook.R;

/**
 * A simple {@link Fragment} subclass.
 */
public class PlayerDetailFragment extends Fragment {
    private static final String TAG = PlayerDetailFragment.class.getSimpleName();
    @ViewInject(R.id.player_detail_favorite)
    private ImageButton mFavorite;
    @ViewInject(R.id.player_detail_favorite_list)
    private ImageButton mCollections;
    @ViewInject(R.id.player_detail_channel)
    private ImageView mChannel;
    @ViewInject(R.id.player_detail_play)
    private ImageView mPlay;
    @ViewInject(R.id.player_detail_next)
    private ImageView mNext;
    @ViewInject(R.id.player_detail_current_time)
    private TextView mCurTime;
    @ViewInject(R.id.player_detail_total_time)
    private TextView mTotalTime;
    @ViewInject(R.id.player_detail_seek)
    private SeekBar mSeekBar;


    public PlayerDetailFragment() {
    }


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fragment_player_detail, container, false);
        ViewUtils.inject(this, view);
        return view;
    }

    public void initMusic(String musicData) {
        if(!TextUtils.isEmpty(musicData)){
            Log.d(TAG,musicData);
        }
    }


}
